<template>
  <div class="hellocom">
    <h3>{{ message }}</h3>
    <h1>{{ msg }}</h1>
    <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
      <circle
        cx="50"
        cy="50"
        r="40"
        stroke="green"
        stroke-width="4"
        fill="red"
      />
    </svg>
    <div class="all">
      <div class="item">item1</div>
      <div class="item">item1</div>
      <div class="item">item1</div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    msg: String,
  },
  setup() {
    const message = "给子应用引用的组件";
    return {
      message,
    };
  },
});
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less">
.hellocom {
  background-color: #42b983;
  h3 {
    color: aqua;
  }
}
</style>
<style scoped lang="less">
.all {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background-color: #9db942;
  .item {
    border: black solid 1px;
    color: aliceblue;
  }
}
</style>
